﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.CodeAnalysis;

namespace Steve
{
    public abstract class MetaRepository
    {
        public abstract IEnumerable<DataUpdate> GetRecentUpdates(int count);
        public abstract IEnumerable<ExternalSystem> GetRecentImports(int count);

        [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
        public Snapshot GetSnapshot()
        {
            return new Snapshot()
            {
                RecentUpdates = GetRecentUpdates(10),
                RecentImports = GetRecentImports(10)
            };
        }
    }
}
